package cn.vehicle.mapper;

import cn.vehicle.domains.entity.VehicleCommonLedgerEntity;
import org.apache.ibatis.annotations.Param;

public interface VehicleCommonLedgerMapper {


    /**
     * 新增车辆入场台账记录
     * @param ledgerEntity 车辆台账实体（包含入场相关信息）
     * @return 影响行数（1：成功，0：失败）
     */
    int insertVehicleLedger(VehicleCommonLedgerEntity ledgerEntity);

    void updateAssId(@Param("id") Long id, @Param("assId") Long assId);

    VehicleCommonLedgerEntity getLastLedgerByVehicleNumber(String vehicleNumber);

    void updateVehicleExitInfo(VehicleCommonLedgerEntity vehicleCommonLedgerEntity);

    VehicleCommonLedgerEntity getVehicleCommonLedgerByAssId(Long id);
}
